
/* GALERIA */
.galeria {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 15px;
  padding: 0 15px 40px;
  max-width: 1000px;
  margin: 0 auto;
  width: 100%;
}

.galeria img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: block; /* 🔹 evita espaçamento fantasma inline */
  max-width: 100%; /* 🔹 impede expansão */
}

.galeria img:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* LIGHTBOX */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.9);
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  z-index: 9999;
  overflow: hidden;
}

.lightbox img {
  max-width: 90%;
  max-height: 80vh;
  border-radius: 10px;
  object-fit: contain;
}

.fechar {
  position: absolute;
  top: 20px;
  right: 25px;
  color: #fff;
  font-size: 35px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
  user-select: none;
}

.fechar:hover {
  color: #A03234;
}

/* NAVEGAÇÃO */
.navegacao {
  position: absolute;
  width: 100%;
  top: 50%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  padding: 0 15px;
}

.anterior, .proximo {
  color: #fff;
  font-size: 40px;
  cursor: pointer;
  user-select: none;
  transition: 0.3s;
}

.anterior:hover, .proximo:hover {
  color: #A03234;
}

/* RESPONSIVO */
@media (max-width: 768px) {
  .galeria img {
    height: 300px;
  }
  .fechar {
    font-size: 28px;
    right: 15px;
  }
  .anterior, .proximo {
    font-size: 30px;
    padding: 0 10px;
  }
} 
